package com.mimiwang.school.controller;

import com.mimiwang.school.domain.School;
import com.mimiwang.school.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/4/16 19:57
 */

@RestController()
@RequestMapping("/a")
public class TestController {

    @Autowired
    TestMapper testMapper;

    @GetMapping("/test")
    String test(){

        List<School> select = testMapper.select();
        System.out.println(select);
        return "ok";
    }
}
